package com.project.light.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Data
@Table(name = "S_Data1Hour")
public class Data1Hour implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Id
    @Column(name = "ID")
    private Integer id;

    @Column(name = "StationID")
    private Integer stationID;

    @Column(name = "StationCode")
    private String stationCode;

    @Column(name = "SysId")
    private Integer sysId;

    /**
     * 通信号
     */
    @Column(name = "CommID")
    private Integer commID;

    /**
     * 日期
     */
    @Column(name = "staDate")
    private Date staDate;

    /**
     * 小时
     */
    @Column(name = "staHour")
    private Integer staHour;

    /**
     * 是否开灯
     */
    @Column(name = "DI")
    private Integer dI;

    /**
     * 开始电表电量
     */
    @Column(name = "AIData1")
    private Double aIData1;

    /**
     * 结束电表电量
     */
    @Column(name = "AIData2")
    private Double aIData2;

    /**
     * 耗电量
     */
    @Column(name = "ElectricQuantity")
    private Double electricQuantity;

    /**
     * 开灯分钟数
     */
    @Column(name = "OpenMinute")
    private Integer openMinute;

    @Column(name = "CreatedTime")
    private Date createdTime;
}
